/ Assembly List / LJCNetCommon / HTMLBuilder / GetBeginSelector

Namespace - LJCNetCommon


Parameters
selectorName - The selector name.
textState - The current text state values.

Returns

The style selector beginning.

Syntax

C#
public String GetBeginSelector(String selectorName, TextState textState)

Gets beginning of style selector.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder();

// Example Method:
// Starts the text with a newline if the builder already has text
// and param allowNewLine = true and builder text does not end with
// a newline.
// The text begins with the current indent string if param
// addIndent = true.
// Defaults: addIndent = true, allowNewLine = true.
var result = hb.GetBeginSelector("tr", textState);

// result:
// tr {

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.